Item Property

Wintellect PowerCollections

Collapse imageExpand ImageCollapseAll imageExpandAll imageDropDown imageDropDownHover imageCopy imageCopyHover image
[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

Gets or sets an item at a particular index in the Deque.

Namespace: Wintellect.PowerCollections
Assembly:  PowerCollections (in PowerCollections.dll)

Syntax

C#
public override sealed T this[
	int index
]{ get; set;}
Visual Basic (Declaration)
Public Overrides NotOverridable Default Property Item ( _
	index As Integer _
) As T
Visual C++
public:
virtual property T default[int index] {
	T get (int index) override sealed;
	void set (int index, T value) override sealed;
}

Parameters

index
Int32
The index of the item to retrieve or change. The front item has index 0, and the back item has index Count-1.

Return Value

The value at the indicated index.

Remarks

Getting or setting the item at a particular index takes a small constant amount of time, no matter what index is used.

Exceptions

ExceptionCondition
System..::ArgumentOutOfRangeExceptionThe index is less than zero or greater than or equal to Count.

See Also